/* @(#)signal.hh
 * Time-stamp: <2009-02-11 19:32:18 root>
 * Copyright 2008 Julian Qian
 * Author: lancer@pdn
 * Version: $Id: signal.hh,v 0.0 2008/12/29 06:45:35 lancer Exp $
 * Keywords: 
 */

#ifndef _SIGNAL_HH
#define _SIGNAL_HH 1

#define EHOME_PID   "/var/tmp/ehome.pid"
#define PID_LEN 10
#define EHOME_SIGNO 50

void set_pid();
int get_pid();
void sig_setup();
void sig_action(int signum, siginfo_t* info, void* act);
void push_sig(pid_t pid, int sigtype);
void clean_memory_sgement();

#endif /* _SIGNAL_HH */

